package light.head.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
/**
 * 爬取鏈接
 * yy
 */
@Entity
@Table
public class News implements Serializable {
	
	private static final long serialVersionUID = 4000800318316750856L;
	private int code;
	private String starturl;			//起始网址
	private String name;				//网站名称
	private String www;					//跟网址
	private String t;					//标签
	private String k;					//属性
	private String v;					//属性值
	private String content;				//内容标签
	private String k1;					//内容属性
	private String v1;					//内容属性值
	private Byte type;					//类型（1.优惠政策2.招商3.申报项目4.公告5.节能减排6.招聘）
	private String remark;				// 备注
	private Date ct;
	private Boolean deleted = false;
	
	private List<NewsItem> itemList;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column
	public int getCode() {
		return code;
	}
	@Column
	public String getStarturl() {
		return starturl;
	}
	@Column
	public String getWww() {
		return www;
	}
	
	@Column
	public String getT() {
		return t;
	}
	@Column
	public String getK() {
		return k;
	}
	@Column
	public String getV() {
		return v;
	}
	@Column
	public String getName() {
		return name;
	}
	@Column
	public String getContent() {
		return content;
	}
	@Column
	public String getK1() {
		return k1;
	}
	@Column
	public String getV1() {
		return v1;
	}
	@Column
	public Byte getType() {
		return type;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(updatable = false, nullable = false)
	public Date getCt() {
		return ct;
	}
	@Column
	public Boolean getDeleted() {
		return deleted;
	}
	@Transient
	public List<NewsItem> getItemList() {
		return itemList;
	}
	@Column
	public String getRemark() {
		return remark;
	}

	
	
	
	
	
	
	
	public void setName(String name) {
		this.name = name;
	}
	public void setType(Byte type) {
		this.type = type;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public void setCode(int code) {
		this.code = code;
	}
	
	public void setStarturl(String starturl) {
		this.starturl = starturl;
	}

	public void setWww(String www) {
		this.www = www;
	}
	public void setT(String t) {
		this.t = t;
	}
	public void setK(String k) {
		this.k = k;
	}
	public void setV(String v) {
		this.v = v;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public void setK1(String k1) {
		this.k1 = k1;
	}
	public void setV1(String v1) {
		this.v1 = v1;
	}
	public void setCt(Date ct) {
		this.ct = ct;
	}

	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}

	public void setItemList(List<NewsItem> itemList) {
		this.itemList = itemList;
	}

}
